﻿<div class="layui-header">
    <ul class="layui-nav layui-layout-left">
        <li class="layui-nav-item">
            <image src="/art/logo.png" class="img"/>
        </li>
        <li class="layui-nav-item "><strong style="font-size: 16px;">hi艺库</strong></li>
    </ul>
    <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item">
            <a href="javascript:;" layadmin-event="refresh" title="刷新" onclick="refresh();">
                <i class="layui-icon layui-icon-refresh-3"></i>
            </a>
        </li>

        <li class="layui-nav-item p10"><img src="{{$myUser['head_img']?:'/art/temp/face.jpg'}}" class="img"/></li>
        <li class="layui-nav-item p10">{{$myUser['nickname']}}</li>
        <a href="/bend/account/logout.html">
            <li class="layui-nav-item p10 cursorpointer" layadmin-event="logout">退出</li>
        </a>
    </ul>
</div>

<script>
    function refresh () {
        var b="layadmin-tabsbody-item";
        var e = ".layadmin-iframe";
        var i = $("." + b).length;
        //F.tabsPage.index >= i && (F.tabsPage.index = i - 1);
        //var t = F.tabsBody(F.tabsPage.index).find(e);
        //t[0].contentWindow.location.reload(!0)
        //$("#LAY_app_body .show_iframe iframe").contentWindow.location.reload();

        //$('.layadmin-iframe').contentWindow.location.reload(true);

        $('#LAY_app_body .show_iframe iframe').attr('src', $('#LAY_app_body .show_iframe iframe').attr('src'));
    }
</script>
